<template>
  <div>
    <div>
      <h4>时期</h4>
      <el-row type="flex" justify="space-between">
        <el-col>
          <span>前期</span>
        </el-col>
        <el-col>
          <div>
            <span>功能等级: </span>
            <el-select v-model="pgForm.xgnpd_aaa3" placeholder="请选择" >
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col>
          <div>
            <span>治疗等级: </span>
            <el-select v-model="pgForm.xgnpd_aaa4" placeholder="请选择" >
              <el-option
                v-for="item in options2"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
      </el-row>
      <el-row type="flex" justify="space-between">
        <el-col>
          <span>中期</span>
        </el-col>
        <el-col>
          <div>
            <span>功能等级: </span>
            <el-select v-model="pgForm.xgnpd_aaa6" placeholder="请选择" >
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col>
          <div>
            <span>治疗等级: </span>
            <el-select v-model="pgForm.xgnpd_aaa7" placeholder="请选择" >
              <el-option
                v-for="item in options2"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
      </el-row>
      <el-row type="flex" justify="space-between">
        <el-col>
          <span>末期</span>
        </el-col>
        <el-col>
          <div>
            <span>功能等级: </span>
            <el-select v-model="pgForm.xgnpd_aaa9" placeholder="请选择" >
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col>
          <div>
            <span>治疗等级: </span>
            <el-select v-model="pgForm.xgnpd_aaa10" placeholder="请选择" >
              <el-option
                v-for="item in options2"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "period",
  title: "时期",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      pgForm: {
        xgnpd_aaa3:'',
        xgnpd_aaa4:'',
        xgnpd_aaa6:'',
        xgnpd_aaa7:'',
        xgnpd_aaa9:'',
        xgnpd_aaa10:'',
      },
      options1:[{
        value:'1',
        label:'Ⅰ，患有心脏疾病，其体力活动不受限制。一般体力活动不引起疲劳、心悸、呼吸困难或心绞痛'
      },{
        value:'2',
        label:'Ⅱ，患有心脏疾病，其体力活动稍受限制，休息时感到舒适。一般体力活动时，引起疲劳、心悸、呼吸困难或心绞痛'
      },{
        value:'3',
        label:'Ⅲ，患有心脏疾病，其体力活动大受限制，休息时感到舒适，较一般体力活动为轻时，即可引起疲劳、心悸、呼吸困难或心绞痛'
      },{
        value:'4',
        label:'Ⅳ，患有心脏疾病，不能从事任何体力活动，在休息时也有心功能不全或心绞痛症状，任何体力活动均可使症状加重'
      },],
      options2:[{
        value:'1',
        label:'A，患有心脏疾病，其体力活动不应受任何限制'
      },{
        value:'2',
        label:'B，患有心脏疾病，其一般体力活动不应受限，但应避免重度或竞赛性用力'
      },{
        value:'3',
        label:'C，患有心脏疾病，其一般体力活动应中度受限，较为费力的活动应予中止'
      },{
        value:'4',
        label:'D，患有心脏疾病，其一般体力活动应严格受到限制'
      },{
        value:'5',
        label:'E，患有心脏疾病，必须完全休息，限于卧床或坐椅子'
      }]
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-select {
  width: 90%;
}
</style>
